#ifndef  __SOCKETIO_H__ 
#define  __SOCKETIO_H__
#include "Message.hpp"

namespace wd{

class SocketIO{
public:
    SocketIO(int);
    int sendn(const char * buff, int len);
    int recvn(char * buuf, int len);
    int readline(char * buff, int max);
    int recvPeek(char * buff, int maxlen);
    int readPacket(Packet&);
    
private:
    int _fd;
};






}
#endif

